#!/bin/bash

echo "启动SOC Web应用（密码加密模式）"
echo

# 设置Jasypt加密密钥
export JASYPT_PASSWORD="soc-web-2024"

# 设置Java系统属性
export JAVA_OPTS="-Djasypt.encryptor.password=$JASYPT_PASSWORD"

echo "加密密钥已设置: $JASYPT_PASSWORD"
echo

# 启动应用
echo "正在启动应用..."
java $JAVA_OPTS -jar soc-admin/target/soc-admin-3.0.0.jar --spring.profiles.active=prod
